from django.db import models

class Station(models.Model):

    name = models.CharField(max_length=100)
    country = models.CharField(max_length=100)
    latitude = models.FloatField()
    longitude = models.FloatField()
    altitude = models.FloatField()
    STATES = (
         (0, 'Inactive'),
         (1, 'Active'),
    )
    state = models.PositiveSmallIntegerField(default=1, choices=STATES)

    class Meta:
        db_table = "stations"
        verbose_name = "Station"
        verbose_name_plural = "Stations"
    
    def __unicode__(self):
        return u'%s' % self.name
